﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Cinema_Ticketing_System.Models
{
    public class Get_User_Indent
    {
        CinemaDBEntities2 cdb = new CinemaDBEntities2();

        /// <summary>
        /// 根据用户Id获取用户所有订单
        /// </summary>
        /// <param name="userid">用户ID</param>
        /// <returns>所有用户订单</returns>
        public List<detail_table> GetIndent(int userid)
        {
            List<detail_table> userindent = cdb.detail_table.Where(x=>x.userid== userid).ToList();
            return userindent;
        }
    }
}